from typing import Annotated
from fastapi import APIRouter, Depends, status
from app.api.deps import CurrentUser, SessionDep
from app import services
from app import models

router = APIRouter()


@router.post("/match-predict/football-europe-odds", response_model=models.FootballEuropeOddsResultResponse)
async def get_football_europe_odds(
    session: SessionDep, 
    current_user: CurrentUser, 
    req: models.FootballEuropeOddsCondition
):
    """
    根据fid查询football_europe_odds_500表中的所有记录
    company_id固定为293，并按create_time升序排列返回结果
    """
    return await services.FootballEuropeOddsService(current_user=current_user, db=session).get_football_europe_odds_by_fid(req.fid)
